import { useContext } from "react";
import context from "../../ThemeContext";

const VoteMain = function VoteMain() {
  const { store } = useContext(context);
  const { supNum, oppNum } = store.getState().vote;
  return (
    <div>
      <p>支持人数：{supNum}人</p>
      <p>反对人数：{oppNum}人</p>
    </div>
  );
};

export default VoteMain;
